package com.dullwolf.event;

import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSONObject;
import com.dullwolf.cmd.gal.GalSearchCommand;
import com.las.annotation.BotEvent;
import com.las.enums.MsgCallBackEnum;
import com.las.strategy.handle.AbstractBotMsgHandler;
import com.las.utils.JsonUtils;
import com.las.utils.MiRaiUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * 自定义QQ群里消息事件
 */
@BotEvent(event = MsgCallBackEnum.GROUP_MSG)
public class GroupEvent extends AbstractBotMsgHandler {

    private Logger logger = LoggerFactory.getLogger(GroupEvent.class);

    @Override
    public void exec() {
        // 后续可以对群聊消息做大数据分析
        exeCommand(getMsgData(), getUserId(), getId(), getType());
    }

}
